﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.Text;

namespace Highlighterr
{
    public class HighlighterrUtility
    {


        public static string GetBufferFileName(ITextBuffer buffer)
        {
            ITextDocument td = null;
            if (buffer.Properties.TryGetProperty<ITextDocument>(typeof(ITextDocument), out td))
            {
                return td.FilePath;
            }
            return string.Empty;
        }

    }
}
